package com.xxx.server.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *
 * Mybatis 分页配置
 *
 * @Author zyh
 * @Date 2021/4/15 15:52
 * @Version 1.0
 **/
@Configuration
public class MybatisPlusConfig {

    //PaginationInterceptor：分页接收器
    @Bean
    public PaginationInterceptor paginationInterceptor(){

        return new PaginationInterceptor();
    }
}
